

package com.hazelcast.internal.config;

import com.hazelcast.config.MergePolicyConfig;
import com.hazelcast.config.ScheduledExecutorConfig;

import javax.annotation.Nullable;

public class ScheduledExecutorConfigReadOnly extends ScheduledExecutorConfig {

    public ScheduledExecutorConfigReadOnly(ScheduledExecutorConfig config) {
        super(config);
    }

    @Override
    public ScheduledExecutorConfig setName(String name) {
        throw new UnsupportedOperationException("This config is read-only scheduled executor: " + getName());
    }

    @Override
    public ScheduledExecutorConfig setDurability(int durability) {
        throw new UnsupportedOperationException("This config is read-only scheduled executor: " + getName());
    }

    @Override
    public ScheduledExecutorConfig setPoolSize(int poolSize) {
        throw new UnsupportedOperationException("This config is read-only scheduled executor: " + getName());
    }

    @Override
    public ScheduledExecutorConfig setCapacity(int capacity) {
        throw new UnsupportedOperationException("This config is read-only scheduled executor: " + getName());
    }

    @Override
    public ScheduledExecutorConfig setSplitBrainProtectionName(String splitBrainProtectionName) {
        throw new UnsupportedOperationException("This config is read-only scheduled executor: " + getName());
    }

    @Override
    public ScheduledExecutorConfig setMergePolicyConfig(MergePolicyConfig mergePolicyConfig) {
        throw new UnsupportedOperationException("This config is read-only scheduled executor: " + getName());
    }

    @Override
    public ScheduledExecutorConfig setStatisticsEnabled(boolean statisticsEnabled) {
        throw new UnsupportedOperationException("This config is read-only scheduled executor: " + getName());
    }

    @Override
    public ScheduledExecutorConfig setUserCodeNamespace(@Nullable String userCodeNamespace) {
        throw new UnsupportedOperationException("This config is read-only scheduled executor: " + getName());
    }
}
